﻿@page
@{ Layout = "_Layout"; }

<div style="height: 10px;"></div>

<el-form v-on:submit.native.prevent size="small" ref="form" :model="form" label-width="280px">

  <el-form-item label="视频上传文件夹" prop="videoUploadDirectoryName" :rules="{ required: true, message: '请输入视频上传文件夹' }">
    <el-input v-model="form.videoUploadDirectoryName" :disabled="isSafeMode" placeholder="请输入视频上传文件夹"></el-input>
  </el-form-item>
  <el-form-item label="视频上传保存方式">
    <el-radio-group v-model="form.videoUploadDateFormatString" :disabled="isSafeMode">
      <el-radio label="Year">按年存入不同目录</el-radio>
      <el-radio label="Month">按年/月存入不同目录</el-radio>
      <el-radio label="Day">按年/月/日存入不同目录</el-radio>
    </el-radio-group>
    <div class="tips">本设置只影响新上传的视频, 设置更改之前的视频仍存放在原来位置</div>
  </el-form-item>
  <el-form-item label="是否自动重命名上传的视频">
    <el-radio-group v-model="form.isVideoUploadChangeFileName" :disabled="isSafeMode">
      <el-radio :label="true">自动修改文件名</el-radio>
      <el-radio :label="false">保持文件名不变</el-radio>
    </el-radio-group>
    <div class="tips">本设置只影响新上传的视频, 设置更改之前的视频名仍保持不变</div>
  </el-form-item>
  <el-form-item label="上传视频类型" prop="videoUploadExtensions" :rules="{ required: true, message: '请输入上传视频类型' }">
    <el-input v-model="form.videoUploadExtensions" :disabled="isSafeMode" placeholder="请输入上传视频类型"></el-input>
    <div class="tips">类型之间用“,”分割</div>
  </el-form-item>
  <el-form-item label="上传视频最大大小" prop="videoUploadTypeMaxSize" :rules="[
    { required: true, message: '请输入上传视频最大大小' },
    { validator: utils.validateInt }
  ]">
    <el-input v-model.number="form.videoUploadTypeMaxSize" style="width: 120px" placeholder="请输入上传视频最大大小"></el-input>
    <span class="tips">(MB)</span>
  </el-form-item>

  <el-form-item>
    <el-button type="primary" v-on:click="btnSubmitClick" size="small">确 定</el-button>
  </el-form-item>
</el-form>

@section Scripts{
<script src="/sitefiles/assets/js/admin/cms/settingsUploadVideo.js" type="text/javascript"></script> }